package com.tourism.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "news_info")
@Schema(description = "新闻表")
public class NewsInfo {

    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "唯一标识", hidden = true)
    private Long id;

    @TableField(value = "title")
    @Schema(description = "标题")
    private String title;

    @TableField(value = "url")
    @Schema(description = "链接")
    private String url;

    @TableField(value = "content")
    @Schema(description = "内容")
    private String content;

    @TableField(value = "create_time")
    @Schema(description = "创建时间", hidden = true)
    private Date createTime;

    @TableField(value = "update_time")
    @Schema(description = "更新时间", hidden = true)
    private Date updateTime;

}
